package com.entity;

import javax.persistence.*;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.*;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 【微渐派工管理】 项目信息
 */

@Entity
@Table(name = "weijian_project_info")
@Getter @Setter @NoArgsConstructor
public class WeiJianProjectInfo extends BaseEntity {

    @Column(name = "project_name")
    private String projectName;

    @Column(name = "start_date")
    @Temporal(TemporalType.DATE)
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date startDate;

    @Column(name = "end_date")
    @Temporal(TemporalType.DATE)
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date endDate;

    @Column(name = "contract_amount", precision = 15, scale = 2)
    private BigDecimal contractAmount;

    @Column(name = "project_status", columnDefinition = "TINYINT default 1")
    private Integer projectStatus;

    @Column(name = "project_manager", length = 50)
    private String projectManager;

    @Column(name = "remark", length = 500)
    private String remark;

}
